<html>
<head></head>
<body>
<?php
// Arrays , les tablaux
// Numeric array - An array with a numeric index
// Associative array - An array where each ID key is associated with a value
// Multidimensional array - An array containing one or more arra
// index commence a 0

$voitures = array("Volvo","BMW","Dacia","Toyota");
// volvo index 1 bmw index 2 etc ... 
$voitures[0] = "Honda"; // declaration manual

echo $voitures[2]." est une voiture roumaine.";

//Associative arrays
//Example1

$ages = array("Tibi" => 18, "Amine" => 20);

//Example 2 (meme chose, modalite d'ecriture differante)


$ages['Tibi'] = "18";
$ages['Amine'] = "20";

echo "Tibi a ".$ages['Tibi']." ans.";

// Multidimesional array 

$families = array
	(
	"Griffin" => array
	(
	"Peter",
	"Louis",
	"Megan"
	),
	"Quagmire" => array
	(
	"Glenn"
	),
	"Brown" => array
	(
	"Cleveland",
	"Loretta",
	"Junior"
	)
);

// Selection valeurs dans le tableau multidimensionel

echo "Is " . $families['Griffin'][2] . " a part of the Griffin family ?";





	
?>	

</body>
</html>